//
//  ShareInfo.h
//  JewelryStore
//
//  Created by lcs on 16/10/15.
//  Copyright © 2016年 com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UMSocialUIManager.h"

typedef NS_ENUM(NSInteger, UmengShareType)
{
    UmengShareType_title,
    UmengShareType_image,
    UmengShareType_imageAndTitle,
    UmengShareType_WebPage,
    UmengShareType_Music,
    UmengShareType_Vedio,
};

@interface ShareInfo : NSObject

@property (nonatomic, assign) UmengShareType type;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, strong) UIImage *thumbImage;   //缩略图
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, copy) NSString *webPageUrl;    //音乐和视频跟网页分享一样，链接不同而已
@property (nonatomic, copy) NSString *musicUrl;    //音乐和视频跟网页分享一样，链接不同而已
@property (nonatomic, copy) NSString *videoUrl;    //音乐和视频跟网页分享一样，链接不同而已

@property (nonatomic, copy) NSString *content;       //网页分享内容
@property (nonatomic, strong) UMShareImageObject *imageObject;
@property (nonatomic, strong) UMSocialMessageObject *messageObject;
@property (nonatomic, strong) UMShareWebpageObject *webpageObject;
@property (nonatomic, strong) UMShareMusicObject *musicObject;
@property (nonatomic, strong) UMShareVideoObject *videoObject;

//分享网页的初始化
- (instancetype)initWithTitle:(NSString *)title
                      content:(NSString *)content
                   thumbImage:(UIImage *)thumbImage
                   webPageUrl:(NSString *)webPageUrl;
//分享音乐的初始化
- (instancetype)initWithTitle:(NSString *)title
                      content:(NSString *)content
                   thumbImage:(UIImage *)thumbImage
                   musicUrl:(NSString *)musicUrl;
//分享视频的初始化
- (instancetype)initWithTitle:(NSString *)title
                      content:(NSString *)content
                   thumbImage:(UIImage *)thumbImage
                   videoUrl:(NSString *)videoUrl;

@end
